
public class XianChen extends Thread{

	String flag;
	public XianChen(String flag)
	{
		this.flag=flag;
	}
	
	public void run()
	{
		doSomeThing();
	}
	
	
	public void doSomeThing()
	{
		int i=0;
		boolean stop=true;
		while(stop)
		{
			long start=System.currentTimeMillis();
	        System.out.println(flag+"time now is:------"+start);
		    i++;
		    if(i>5)
		    {
		    	stop=false;
		    }
            try
            {
		    	sleep(1000);
		    }
		    catch(Exception u)
		    {
		    	u.printStackTrace();
		    }
		    
		    
		}
           	
	
	}
	

}
